Fixed: foreach fails on selections