fixed null bug in installer