fix potential dependency bug