Fix status check