Fixed some bugs, but still didn't fixed the main one, which doesn't allow the engine to work properly.