Fix namespace clash for "last" function