Let's look at the code that works. Maybe theres something you left out...