fix the case where there are comments