[FIX] fixed crashing bug