fixed indexing of a nil value, version updated to 0.1.4