Fixed issue with global inputs