Fix bug in previous trello-49 PR

Fixed bug in previous trello-49 PR (#743).