Fix issue when caller's classloader is the system class loader