fixed issue with default value overriding input