fix deviation calculation when open file