fixed pretty large logic bug in getUniform range handling