fixed some var-probs