fixed weird bug causing start up to crash