fixes for stylus