The court may substitute a security measure that is being carried out for another one deemed more appropriate in view of the subject's personality and the effectiveness of the measure.