fixed crash bug in demo