fix drawing bug with multiple empty intervals