modify face detect crash bug