fixed errors in WorldEditor