fixed bug where None was converted to string