fixed the other programme crash bug