fixing close case