bug fix in case of multiple bin