Max history fixed