fix a bug of autopreview mapping