Hi ritm,
Could you prepare a reproducible example? With the info you have given is really difficult to narrow down what your problem is.