Fix getCommands method
Up to version 1.7.2