fix clicking with offset