Avoid duplicate exception

Author: Maulik Patel