Global variables: loosing the value

@xxxx - I still can't see your code, so I'm assuming you've fixed your problem.