Fixed bug with wrong selected dates after onResume()