Bug fix inside getLoader() method.