Exception handling fixed, still not working