Fixed possible double type issue (replaced with int)