avoid x getting smaller when editing