fix starting crash