fix setCustomView method