fixed minor rendering bugs