Fix for weird rendering

Changes for redmine 2.6.0