fix setting of disabled attribute