Fixed render-item dispatch.

And an annoying indentation issue.
Merge pull request #305 from MastodonC/feature/fix-render-dispatch

Fixed render-item dispatch.