Fixes error messages bug in comment creation