Quickfix for casting exception