Fixes view functions.