Fix to avoid possible sql injection attacks.