Building preview and remove assertion out of bounds.