Fix open core getting stuck at “ok”

Like please help it just doesn't work I've tried everything

Author: @PythonCodin