fix the empty line issues