fix for queue resize