fix out range of mysql