Fixed syntax error with naming error callback function