fixed bad offset