fix button on fixed state problem and some bugs