lastselected photo not crash