bugfix for 1198

code review:
http://mrccodereview.cloudapp.net/ui#review:id=7319
to test:
http://cz-dec2013-giorgiy-test.azurewebsites.net/