Volume gets reset after each boot

If I shut down my computer with the volume muted, when I boot it up again, the volume will be on. How can I fix this?