Fixed a minor-ish bug introduced by me being too hasty with the autocomplete