Make programs behave properly thanks @bobthecow