fixed issue , callback with error never called