Swapping the order of those two lines fixed it! Odd that it worked before, but it is now behaving as expected. Thanks!