fix bug in callback