Fixed a php error that as preventing correct redirect to definition subtype