fix minim errors