Fix one possible crash at the beginning.