Removed warning in instance blocks foreach
Fixed handling of not valid instance pages