Removing extra ] and fixing indentation accordingly.