Fix some weird precache bugs