fixed some posible NPE, improved warning message for locked research group.