Fix stack error in showMessage when returning