fix finally bug