It was a hitbox problem, the engine had trouble calculating collision of two moving objects with such a small collision box so we made it bigger and now the pills can't bug through the drawers :)