Fix a bug with nil value
Add indicator indicating opened file