fixed finally bug