Finally fixed the bug. Caching thing after all.