fix bug in given