Fixing orphaned line of code