fix table not working