fixing /apply route