fixed troublesome offset