Fix preview with locator feature

The preview should now work with the locator feature