Fixes gallery import mechanism.