Fixed the script, values were inverted.