change one FormatErrorException to EmptyStackException