Hard to offer solutions without code to see what is happening. Can you make a SSCCE that demonstrates the problem?