Fix x and y offset