i think this fixes error #1