Fix bug about same x check - #181