Fix probable nil cause