I know about the second bug not the first one, but I think that they are caused by the exact same thing and fixing it is not going to be fun. I'm going to have to dive in to some pretty bad code.
Level 9 has a trick to it, only 2 people were able to solve it so far.