fix broken status check