Fixing a bug in the original rtm api I found