fix a first-time start crash bug
Merge pull request #14 from l0rdicon/master

fix a first-time start crash bug