Fixes post code to control Spark controller