Fix scope for function
release 0.9.2