Fixed problem accepting empty key values of '0'