fix magic lines