Fix model magic methods.