Fixed type issue for partially evaluated functions