Corrected the taken nil exception