Fixed some problems with not being able to set values to 0.