Missing semi
Fixed error factory