fixed kind check and recordType set

2 jobs for dm3/various-fixes in 5 minutes and 34 seconds