Fixed logic error on cursesEnable.