Fix return value for status check