Fix bug that caused the from not to downcase