fixed redirect crash that occured at times when binary handler was called