fix bug which crush when open apps