fix expires bug