fix type value if it less than zero