Fixed avgDev execution error.