fix max-size styles