fixed __toString return non-string error