fix potential error in complex latex header labels