Fixes selectedchunk