fixes a bug in comments controller