minor fix scope issue