If iMessage does not have a good connection it can switch to an SMS message format. That is how it supposed to work. Only if you have Send as SMS turned on in Settings>Messages.