fixed bug related to setting things to 0