There may be another mechanism holding the headrail inside the brackets such as a spring-loaded clip, screws ... Here's how ...