Removed issue with negative offsetX