Fixed bug. Accessed wrong field in factory function.