fixed bug in compile scripts