globals error fixed