The response is, in fact, quite simple. It's just that semicolon denote a separation and not a termination, which cause the programm to separate the two instruction leaving the callback without any function defined which causes an error.