fixing astbutton generation