Ensure views exists, and fixed errant replace