When you practice around the green, don't just put the ball in perfect lies all the time. Simulate conditions you'll find on the course, including difficult lies. Most players have trouble when the ball is above or below their feet. From a sidehill lie, the ball will follow the direction of the slope, and you have to allow for that.