fix bracket null issue with wrong id