fix bug in view loading from missing var