added changing selection class number if it is not now going class

Signed-off-by: Денис <Денис@emp-513-02.oat.local>