changed z order for rendering labels of km plots (attempt to address
#1443, rfc)