fix for un-needed space causing logging of error