fixing controller script building issue