GitHub #119: Fix parameter setting bug (0 is not None)