fixed calling phonelib twice