Put a BP on the "wrong part" and check the values of guiclass and ui.

You do initialise guiClass in anotherClass don't you?