Fix eval in controller to catch JSON deserialization