fixed problem with 'allowBackward' to match expected behavior