fixed settings; fixed bug with calculation ins statistics page