gallery loader fix