Bug fixes on jquery dataTables