fix correct usage of reference to _sermode