Thunderbird duplicates inbox

i have thunderbird set up with one imap account plus local folders

why is it that, much too often, when i attempt to move a message from my imap inbox to a local folder, thunderbird creates a duplicate of my imap inbox with all its messages and puts it somewhere in my local folder hierarchy?