Fix popup slicing