fix problem woth bd