Bug fix [minor]: offset is now pared to int cause it used to happen that on $nav link click hash didn't change