fixing a crash on creating a comment