caught illegal state exception while pdf import (see #372)