corrected offset for the input box