library stats fix