fixed crash when used on a server instance