fix for values randomizing when they should not