Fixes achievements and portal loop