make the xpcall check really work