Fixed API usage
Fixed minor issue in generating @media selector