fix input function register read