fixed used as value error