Fixed hashing bug in component caching