fix bug for reload