Fixed another error. Note to self: don't do anything first thing in the morning after 3 hours sleep.