[minor] Fixed a thrown error