Update standalone.sh

fixing memory issues