fix #17: properly adjust clipRect