fix ajaxhub
fix minor bugs

Signed-off-by: Roger Manich <roger.manich@gmail.com>