Prepopulating with query parameters not working