deal with bug