fixed a bug in statements checking platforms