fixed empty delimiter bug