Fixed attributes loading bug