[whitespaces] & [opt] minor fix of optimizer, when Optimizer is provided (set model to self)