fix type ahead and upload