Fix the initial value of status to undef
Fix to refactoring