Something wrong with clamp functions?!