Fix offset position when using appendTo