Fix some bug for the view composer