Fixed view has no method 'getUri'

Fixes #2