do proper checking for a pass not existing. fixes #671