fixes #6680 this must be a bug on some 5.3.x that private methods can't be called in closures