I finally found the source of my local variables problems. It's funny how those typo's can look so right but be so wrong! Sorry about that...everything is working fine now.