Fixed Refinery GUI. Thanks Tommy!

Closes #1066
Closes #1062