Fix a bug with left(), top(), right(), bottom()