Bugfix in ajaxify and implemented issue #6