fixed the silly crash