Fix bugs in LinearView