Fix X/Y of popup