Fixed issue when offset().top is no integer