fixed error when no supervisor