api patch Initialize Monitor instances with the correct classes for position and size fields instead of plain object.