Fix compile script bug