fixed little crash issue