Implement handling invalid value