Fixed incorrect target in main view