fixed bugs. Don't freeze VARS