i don't know if this is a bug, i'm playing now as Mint and ent to the door with the code, i can't get out of that room. (I had to look up the code so I could continue playing).
The code is 313 this help you for the end B