Fixed crash when chests are closed with viewers