Added kbuilder.getErrors() check