prevent figures from resetting