fixed console issue