Explicitly initialize xOffset and yOffset to 0