solve the bug