diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000000000000000000000000000000000000..94a25f7f4cb416c083d265558da75d457237d671
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>
\ No newline at end of file
diff --git a/cfel_crystfel.py b/cfel_crystfel.py
index 21951ef0ee7cc28a1f36111cc5390e1609ce8a6c..d25880703631737599484ab1e81d6840cf5d4a92 100644
--- a/cfel_crystfel.py
+++ b/cfel_crystfel.py
@@ -84,6 +84,8 @@ def load_crystfel_geometry(filename):
 
         if v == 'ss' or v == 'fs' or v == '%':
             dim[dim_index] = v
+        elif v.isdigit():
+            dim[dim_index] = int(v)
         else:
             raise RuntimeError('Invalid dim entry: {}.'.format(v))