Did u try if this error also occurs when you use the laterst version, 1.1.1.0 ?
If it still doesn't work, could u send me more code that surrounds this block of code, or a small demo where this error occurs ? Because i can't reproduce this error with these 3 assignments!