fix callback, first parameter is error