Protected content returning 404, not

When using the Membership plugin, no matter what I do, when a user tries to access protected content without permission, the specified Protected content page is not displayed. Instead, a standard 404 page is displayed instead. The content loads as usual when the user has proper permission. Does anyone know what could be causing this?