BS7151, fix theme updated. Cause: the file content was get inside the closure (before closing the stream). Resolution: get file content ouside of closure