extra fi statement left

There is extra fi statement which breaks the whole code
Merge pull request #10 from mbochynski/patch-1

extra fi statement left (merged from bug report)