solve th bug