Fixed iPad bug and clear button bug in realtime