Fixed bug with let on first line
Thanks pszilagyi for reporting
Fixed bug with 'module type of'
Thanks pszilagyi for reporting