Fix bug in upper and lower x-boundary.