fixing notice bug