corrected crashing after call