Add this before the Loop in archive.php:

<?php
if ( is_category() ) {
  $cat = get_query_var('cat');
  query_posts(array('category__in' => array($cat)));
}
?>

Found on wordpress.org/support

Last updated on 5th September 2018