fix incorrect script role parsing