Fix active record unset attribute values bug