Jeep Grand Cherokee 1998 - jeep immobiliser - terry0311

hi all i have a 1998 jeep grand cherokee sometimes my remote keyless entry fob will not unlock or lock my doors so this means the the immobiliser is still on i have noticed that if i am inside the car the rke works more often than not but as soon as i go outside of the carit becomes very hard to operate the rke this happens with both key fobs i have replaced both of the batteries with in the last week can anybody help? please. also i have tried disconnecting the car battery to see if this would reset anything unfortunately it didnt

thanks

terry