bug in bed api