Fixed plugin switching

Switching between plugins handling the same file extension required a
restart before, this fixes it