fixed a major bug. Wrong parentOffset was calculated for fixed target element.