fixed bug with legends not being copied over upon deploy