fix variable reset for area maintenance and for plot preview