evaluate View expression in correct environment

fixes #1017