Trying to see removing endlocal can solve this issue