[done-250] fixed issue introduced by commit 4ca8cbb, added platform check