add autofix to gallery