minor fix for max tex size