integer bug: when value is 0, then returned None