fixed toString bug with objects