Fixed rendering inconsistencies between flash/cpp targets.