OK, solved by removing the function. (it was some left over from wip code)