fixed wrong attribute access