workaround for IllegalArgumentException