closes some minor bugs