fix comment attachment check