fixed instance dependency issue