diff --git a/io_mesh_pdb/__init__.py b/io_mesh_pdb/__init__.py
index 206dd2187bc1ea91145a13009646a85baf49d5e0..580fffa08f051e2bcbf60b04df54ee75e8599052 100644
--- a/io_mesh_pdb/__init__.py
+++ b/io_mesh_pdb/__init__.py
@@ -25,7 +25,7 @@
 #
 #  Start of project              : 2011-08-31 by Clemens Barth
 #  First publication in Blender  : 2011-11-11
-#  Last modified                 : 2012-10-13
+#  Last modified                 : 2012-10-14
 #
 #  Acknowledgements: Thanks to ideasman, meta_androcto, truman, kilon,
 #  dairin0d, PKHG, Valter, etc
diff --git a/io_mesh_pdb/export_pdb.py b/io_mesh_pdb/export_pdb.py
index a7a67bf64c93bc007a15b687900a85d994017446..e211f19a59d48a281f09c9a9425349681fb437f5 100644
--- a/io_mesh_pdb/export_pdb.py
+++ b/io_mesh_pdb/export_pdb.py
@@ -74,14 +74,16 @@ def DEF_atom_pdb_export(obj_type):
 
         if len(obj.children) != 0:
             for vertex in obj.data.vertices:
+                location = obj.matrix_world*vertex.co
                 list_atoms.append(CLASS_atom_pdb_atoms_export(
                                                        name,
-                                                       obj.location+vertex.co))
+                                                       location))
         else:
             if not obj.parent:
+                location = obj.location
                 list_atoms.append(CLASS_atom_pdb_atoms_export(
                                                        name,
-                                                       obj.location))
+                                                       location))
 
     pdb_file_p = open(ATOM_PDB_FILEPATH, "w")
     pdb_file_p.write(ATOM_PDB_PDBTEXT)