minor fix for nested wells