fix indentation calculation