fixes two symbology bugs

Should fix these two issues:

http://hub.qgis.org/issues/10520
http://hub.qgis.org/issues/10509