script: Fix upper bounds