fix #4 and check nullable location in detailActivity