Fix errors involving removing the loading placeholder

The errors were added in the last merge
Fixed a missing semi-colon as well