fixes a bug with comment handling