Don't create minimap if the state is not correct (fixed #894)

TBR: @umop