fix maxStepTime typo
use container width for canvas size