Do a larger than average water change...double what you do. Take your nitrates of 40. Do a 10% water change, that only takes it down to 36. More water changes to get them down where you want them to address the cyano issue. Also, increase flow will help...but if the nitrates creep back up it will come back in the form of algae growth.