fixed int/float problem