fix code bugs on presentation