fix `passed` flag setting