button init attributes fix