Fix bug in view extending.