correct handling of 0 for input instead of FALSE