Fix preview and preview debugging (similar to #55)