Your spouse needs to keep her H-4 status all the time while she is in US, which is not automatically maintained with your H-1b.
Check her I-94 card to make sure she has not yet been out of status.