Fixed chest checks. Should hopefully fix the exceptions.