fix bug with error calculation; fix project settings for release