Big fux in Core.cpp in reinit()