Fix mode on compile script