Slight fix. check for @account to be persisted? on header so no problem with nil values occur.