A remark on uniqueness of weak solutions for some classes of parabolic problems