bugfix with BRPOP