[DF-421] Fixed crash on macos