Fixes error in Compose.