Small errors found while debugging.