bug fix using incorrect id