How to avoid duplicate response