Replaced .get with index selection for . Fixes #258