fix bug in GBaseLoader dispose method