Backwards compatibility update

Fixed bug that caused fatal errors on EE versions earlier than 2.8.