remove an exit() which should not be there