fixed bug in BWM for retrieving values