Fixed integer validation and a "double $$" typo.