Setting mMaxX

Summary: Appropriate way of setting maximum x value.