bugfixing for adding skills through AJAX