fixed silly crash bug