fixed issue with large K