diff --git a/modules/io/src/mol/entity_io_mae_handler.cc b/modules/io/src/mol/entity_io_mae_handler.cc
index f05ce8af4cce772df614b4a3775d732282f478d9..59f5dbab1a9be5a0e90ae7e80858131230397b69 100644
--- a/modules/io/src/mol/entity_io_mae_handler.cc
+++ b/modules/io/src/mol/entity_io_mae_handler.cc
@@ -55,7 +55,7 @@ using boost::format;
       std::vector<std::string> nrvo;
       bool in_string=false;
       int p0=0;
-      for(int p1=1;p1<line.size();++p1) {
+      for(size_t p1=1;p1<line.size();++p1) {
         if(in_string) {
           if(line[p1]=='"') {
             in_string=false;
@@ -111,7 +111,6 @@ void MAEReader::Import(mol::EntityHandle& ent)
   bool in_ct_block=false;
   bool in_atom_block=false;
   bool parsing_atoms=false;
-  bool debug=true;
   std::vector<std::string> prop_list;
   int i_atom_name=-1;
   int i_atom_xpos=-1;
@@ -289,7 +288,7 @@ bool mae_handler_is_responsible_for(const boost::filesystem::path& loc,
                                     const String& type) {
   if(type=="auto") {
     String match_suf_string=loc.string();
-	std::transform(match_suf_string.begin(),match_suf_string.end(),match_suf_string.begin(),tolower);
+    std::transform(match_suf_string.begin(),match_suf_string.end(),match_suf_string.begin(),tolower);
     if( detail::FilenameEndsWith(match_suf_string,".mae") || detail::FilenameEndsWith(match_suf_string,".mae.gz") ) {
       return true;
     }