prevent double finishes