Fix incorrect attribute access.