Fix id bug in get samples php