solve random bugs