actually fixes bug