fixed bug with more than one edit var