Fixed simple crash bug