It seems that jumping into a directory containing spaces adds it to the database but doesn't update it if it is already in the database.