Corrected a bug with details view