fix jquery bug with offset().left