I'm sorry, I know what the bug is. Replace:
By this:
That should work, if the removedFromWorld is done correctly.
And some useful advice: start the name of your classes with a uppercase, that is standard in java. Java won't complain when you don't do it, but it confuses other programmers.
getWorld().removeObject(...);
world w = (world) getWorld(); w.removeObject(...);