Fix some prams state and fiw view errors.