Fixed selects not populating for new inline fields.
Removed an unused variable and fixed some formatting.