Fixed undefined function bug for older devices.