fixed bug with max scene not being traversed recursively