Fixed exception due to attribute treated as hash