Removing unwanted exception