fixed no space exception handling