fixed compile script