fixed minor issues spotted by awesome redditor