fixed issue with blank input