fix bug with nested things