diff --git a/old_bedpost_cleanup b/old_bedpost_cleanup
index bd07090d698b9c95272927caa7535ec01be98043..9ea557e18b3966fda56d3f985785bd9b90df36fb 100755
--- a/old_bedpost_cleanup
+++ b/old_bedpost_cleanup
@@ -10,3 +10,8 @@ else
      done
 fi
 
+if [ "x${FSLLOCKDIR}" != "x" ];then 
+    if [ -r ${FSLLOCKDIR}/.bedpost.lock ];then
+	rm ${FSLLOCKDIR}/.bedpost.lock
+    fi
+fi
\ No newline at end of file