Fixed problem with switching from internal to external trigger