Fix marker detection