fixed console spam bug