infinite portfolio loop safari fix