fixed a caching problem