Fixed crash caused by comments observer

Closes #303
Potential fix for #304