minor code fix for completion window