fix flask raise ValueError when mirroring
Merge pull request #456 from lilinux/master

fix flask raise ValueError when mirroring