fix issue EXC_BAD_ACCES