fixed menu IDs
got rid of wrect (directly use rect instead)
avoid deserialization of non-serialized objects