bug fix sp