fixing close sr bug