fixed #635 : (Corrected Indentation & removed Unnecessary for loop)