Fixed sytnax error on ValueErrors.