fix mobile if block