Not enough warning & failure to understand role is usually step 1 in seeking to dismiss or constructively dismiss a woman who's taken maternity leave. I deal with this all the time.