Fix custom window level bug.