fix max len