Deal with nil exception