Fixing spec warnings