Fixed minor local variable issue
Support for gradients defined as percentages