fix negative numbers