Capital Work in Progress Entry Error on Assets Creation

Capital Work In Progress entries are being made on Asset creation even though the Capital Work in Progress Accounting was not enabled:


Available for Use date is also specified as a past date:


This is obviously a bug and needs to be fixed.