Fix mark as close bug