Solved the chunk rendering bug.