Fix for no status attribute error