Fix execfile method to not call the parent function