Make phases validations and errors work correctly.