Fixed empty stack exception with smithy