Fixed bug with register casting from exposed interface to internal interface