Fix for checkGps

It is a small fix for the issue #189, I think you could improve. I do not know, you who think @freekzy