552 find view by id called twice

This PR resolves the issue #552.