fix analogue buffer size check