fixed bug when only a string was passed to render