fixed bug when object was empty, should be a slash