fixed an issue with buildscript