Remark on the decay for damped string and beam equations