fixed bug with custom view