Fixed object to string casting bug in comments management