Bug fix - Check if nested statement = do nothing

Bug fix - Check if nested statement = do nothing