Fixed the 'getContainingComonents()' function