another nil fix and indentation fix