fixed warning for init view