Fixed rect fill assigning incorrectly