Removes use of function that was deprecated in EE 2.6.1 - fixes #8