Finally got autocompletion overwriting fields working correctly