Fixes minor code glitches