Fix X and Y offset