Fixed error caused by random number 8