fix gps bug

credits to Steve Kondik

Change-Id: I7ecd0253aa89b43ad28fc5297e31a26c3c68a062