Fixed some notice level errors