Fix loading intent bug