Bug fixes: preview, output, interface, internal logic
Bug fixed, fix unexpected output.