fix rendering of todo items