Fixed val and ref