Fixed invalid operations on server restart