Added a min max function floored the fade value to 0