bug solving in console