handle activemodel missing attribute issues