Fix negative sleep values.