fixed bug with global constants vairable