Error with jquery UI datapicker

Error with jquery UI datapicker

Plase help with this datapicker issue.

I use two calendars in my page, resulting a weird behavior. When use first button, second button don't hidde like image show.