Fixed non-required-model.rb bug