fixed bug (max value jumped to 0)