fix bug for not excute functions