Fix bug preventing users from typing in date