Fixed hoisting bug.

There's another hoisitng bug I still need to fix.