fix puppet apply