Fixes analog input bug