Bug fix

This will fix the bug that crashes when no chest found during
transaction