Fix getting trail info from button