bug fix - edit expansions