Fix #24. Cheers @rurban.