Fixed scope issue on server launch