Fixed error when no attributes given