Fix bugs (time and ui form in factory)