Fixed error when type = int