Fixes a bug with the chests