Corrected attribute dimension handling.