fixed console bug