Missing import fixed.

Thanks to @medboth. Closes #522.