diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm
index d2a667ef6..7cd3d0ef2 100644
--- a/lib/Slic3r/GCode.pm
+++ b/lib/Slic3r/GCode.pm
@@ -156,7 +156,7 @@ sub extrude_loop {
     $self->wipe_path($extrusion_path->polyline);
     
     # make a little move inwards before leaving loop
-    if ($loop->role == EXTR_ROLE_EXTERNAL_PERIMETER) {
+    if ($loop->role == EXTR_ROLE_EXTERNAL_PERIMETER && $Slic3r::Config->perimeters > 1) {
         # detect angle between last and first segment
         # the side depends on the original winding order of the polygon (left for contours, right for holes)
         my @points = $was_clockwise ? (-2, 1) : (1, -2);