Promise resolving mechanism fixed.