Fixed Segfault with an another bad error