Fixed a bug in eval when returning functions