fix rendering, closes #26