Oh yes, the magic is in the details! But yes, there is a bug there, which I turned a blind eye to this because of the messiness of the code. When I rewrite it cleanly, the bug will be gone. Thank you!