Fixing error with phone-detection