Fix bug visualizing objects