Fixes bug in jquery waypoint usage