bugfix for swapping view engines