Fixed a bug if input is under 0