bPos is not being updated properly