fixed console flooding bug