Phone gap fix