commited plan visits bug fix