Fixing a posible error in dframework.