fix alternate exit path