Fix #9, support nil format