Fix imageloader crash.