Fixing ANR's and NPE's