Fixed bug in eval sequence

Fixed a bug in the evaluation of sequences where the environment was not
correctly passed