Copypaste and func button bug fix