Fixing bug with rendering interger