Fixed an old bug logics

PLAT-1544