Fix potential nil pointer deref