Fixed errors in the Eland ext subroutine