Fixed command duplication in nested containers