Fixed issue with setStageRefference and worldVisible function