Invalid function bug fix

Error thrown on settings page. Fixed and updated to v1.6.1