fixed bug about forgetting zeroing out