fix view resolver bug