fix the crash on launch

Signed-off-by: Arnav Gupta <championswimmer@gmail.com>