WordPress returns old thumbnail size after changing media settings

wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'medium' );