Fixed bug 1166: entering a closed container