Bug fix for editing todo