#114 - fix end block