Fix for a scope read bug

Signed-off-by: Delian Delchev <delian.delchev@gmail.com>