Fix onload cache error