Fix firefox offset issue