Should fix chunk loader not working in some cases. Closes #440.