fix getting id