Minor fixes for the invisible keyboard hack