fix button undefined