I have solved the problem. The shortcode was re-evaluating a variable inside a block(if else), but i found a way to fix it. If anyone has the same problem let me know and i can help. Thanks for the reply. Ryan