Fixed cursor bug when minimumsize and maximumsize were the same value