fix nullification of model attrs