Minor code fix for completion window