fix null point in empty section