fixed bug with retrieving ID of customCommand