Fixed NULL library instance issue .