case insensitive search and viewport fix